package com.castlzl.mybatisplus.controller;


import com.castlzl.mybatisplus.entity.ProdReqInfo;
import com.castlzl.mybatisplus.service.IProdReqInfoService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.logging.Logger;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author leiziliang
 * @since 2020-12-24
 */
@Slf4j
@RestController
@RequestMapping("/prod-req-info")
@Api("ProdReqInfoController")
public class ProdReqInfoController {


    @Autowired
    private IProdReqInfoService reqInfoService;

    @GetMapping("/all")
    public List<ProdReqInfo> getAllProdReqInfo(){
        log.error("获取全部的需求信息");
        return reqInfoService.list();
    }

}
